package com.pashanhoo.designpatterns.singleton;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class TestThreadMax {
    private Logger logger = LoggerFactory.getLogger(TestThreadMax.class);
    private static final int len_thread = 5000;
    static ExecutorService executor = Executors.newFixedThreadPool(len_thread);
    public static void main(String[] args) {
        for (int i=0;i<len_thread;i++){
            executor.submit(new SubClass());
        }
    }
}